package org.basic.sms.domain.bo;


import org.basic.common.core.validate.AddGroup;
import org.basic.common.core.validate.EditGroup;
import org.basic.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.basic.sms.domain.SysSmsTemplateParam;

/**
 * 邮件模板参数业务对象 sys_sms_template_param
 *
 * @author Shao Hua
 * @date 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysSmsTemplateParam.class, reverseConvertGenerate = false)
public class SysSmsTemplateParamBo extends BaseEntity {

    /**
     * 参数ID
     */
    @NotNull(message = "参数ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 参数名称
     */
    @NotBlank(message = "参数名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String paramName;

    /**
     * 模板ID
     */
    @NotNull(message = "模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long templateId;


}
